package cn.hum;

import cn.hum.rpcInterface.SayHello;

/**
 * @Author: huangzhibin
 * @Description:
 * @Date: Created in 2021-01-10
 * @Modified By:
 */
public class Demo {
    public static void main(String[] args) {
        RpcClient.register(SayHello.class, "cn.hum.service.SayHello");
        SayHello sayHello = RpcClient.getRemoteObject(SayHello.class, "127.0.0.1", 20000);
        System.out.println("创建代理对象成功");
        System.out.println(sayHello.helloworld("hello world!"));

    }
}
